Software Development
Testing with JUnit
JUnit Fundamentals
Working with JUnit Tests

JUnit Fundamentals

Course Number:
jl_jtut_a01_it_enus
Lesson Objectives

JUnit Fundamentals

  • start the course
  • understand the basics of unit testing with JUnit
  • set up JUnit in Eclipse
  • understand how to use the @Test annotation
  • run a JUnit test from Java code
  • understand JUnit assertions
  • understand how to use Assert number equality methods in JUnit tests
  • understand how to use Assert object equality methods in JUnit tests
  • understand how to use Assert array equality methods in JUnit tests
  • understand how to use assertThat methods in JUnit tests
  • understand how to use combined assertThat statements in JUnit tests
  • understand how to use assertThat methods with collections in JUnit tests
  • understand how to use custom assertThat matchers in JUnit tests
  • contrast Assume with Assert and use Assume statements in JUnit tests
  • configure JUnit test cases
  • work with JUnit test fixtures
  • practice modifying Java code to ensure proper testing scenarios

Overview/Description
JUnit is a framework for writing and running unit tests for Java. This course covers how to get started with JUnit, key members of the API, and how to create a test case and use fixtures.

Target Audience
Java programmers who wish to use JUnit for unit testing

Working with JUnit Tests

Course Number:
jl_jtut_a02_it_enus
Lesson Objectives

Working with JUnit Tests

  • start the course
  • create JUnit Test suites
  • use categories in JUnit tests
  • manage failures with @Ignore in JUnit tests
  • configure timeouts in JUnit tests
  • customize JUnit test runs
  • use parameters in JUnit tests
  • manage data across multiple JUnit tests
  • configure execution ordering in JUnit tests
  • enhance JUnit tests with rules
  • use rules to manage JUnit tests
  • work with JUnit theories
  • work with mock objects in JUnit tests
  • run JUnit tests with Maven
  • configure JUnit tests for legacy code
  • configure JUnit test suites for legacy code
  • practice modifying existing Java code to accomplish proper testing scenarios

Overview/Description
There are a number of features in JUnit for enhancing and expanding tests. This course covers how to create test suites and categories, optimize JUnit tests using execution procedures, timeouts and rules, manage test data, use theories and mock objects, run tests with Maven, and implement testing in legacy code.

Target Audience
Java programmers who wish to use JUnit for unit testing

Close Chat Live